home *** CD-ROM | disk | FTP | other *** search
/ Quarterdeck InternetSuite / Quarterdeck InternetSuite.iso / qsockpro.qip / CAMTECH.MPS < prev    next >
Encoding:
Text File  |  1996-03-20  |  1.0 KB  |  46 lines

  1. # Camtech (Australia) PPP login script
  2. # Copyright 1995 Quarterdeck Corporation
  3. # 5-10-95 Earl White
  4.  
  5. STRING username
  6. STRING password
  7.  
  8. TRACE OFF
  9.  
  10. SetTimeout      90                      # reset maximum script timeout
  11.  
  12. # Get username from access method
  13.  
  14. CfgGetValue "Username" username
  15.  
  16. IF result = 0 THEN
  17.     GetInput "Enter your username:" username
  18.     IF result = 0 THEN
  19.         PRINT "Warning, no username entered."
  20.     ELSE
  21.         PRINT "Username set to:"; username
  22.     ENDIF
  23. ENDIF
  24.  
  25. CfgGetValue "Password" password
  26.  
  27. IF result = 0 THEN
  28.     GetPassword "Enter your password:" password
  29.     IF result = 0 THEN
  30.         PRINT "Warning, no password entered."
  31.     ELSE
  32.         PRINT "Password set."
  33.     ENDIF
  34. ENDIF
  35.  
  36. CommWaitFor "login: "         # wait for username
  37.     CommSend username         # send user name
  38.     CommSend "%r"             # send carriage return
  39.  
  40. CommWaitFor  "word:"          # wait for password prompt
  41.     CommSend password         # send password
  42.     CommSend "%r"             # send carriage return
  43.  
  44. END                           #success if we got this far
  45.  
  46.